package com.ruoyi.project.purchase.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class PurDrugFac extends BaseEntity {
    private Integer drugId;
    private String drugName;
    private Integer purNumbers;
    private Double purPrice;
    private Double purCount;
    private Integer purId;
    private String factoryName;
    private String drugType;
    private String drugRxType;

    public PurDrugFac() {
    }

    public PurDrugFac(Integer drugId, String drugName, Integer purNumbers, Double purPrice, Double purCount, Integer purId, String factoryName, String drugType, String drugRxType) {
        this.drugId = drugId;
        this.drugName = drugName;
        this.purNumbers = purNumbers;
        this.purPrice = purPrice;
        this.purCount = purCount;
        this.purId = purId;
        this.factoryName = factoryName;
        this.drugType = drugType;
        this.drugRxType = drugRxType;
    }

    public Integer getDrugId() {
        return drugId;
    }

    public void setDrugId(Integer drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public Integer getPurNumbers() {
        return purNumbers;
    }

    public void setPurNumbers(Integer purNumbers) {
        this.purNumbers = purNumbers;
    }

    public Double getPurPrice() {
        return purPrice;
    }

    public void setPurPrice(Double purPrice) {
        this.purPrice = purPrice;
    }

    public Double getPurCount() {
        return purCount;
    }

    public void setPurCount(Double purCount) {
        this.purCount = purCount;
    }

    public Integer getPurId() {
        return purId;
    }

    public void setPurId(Integer purId) {
        this.purId = purId;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public String getDrugType() {
        return drugType;
    }

    public void setDrugType(String drugType) {
        this.drugType = drugType;
    }

    public String getDrugRxType() {
        return drugRxType;
    }

    public void setDrugRxType(String drugRxType) {
        this.drugRxType = drugRxType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PurDrugFac that = (PurDrugFac) o;
        return Objects.equals(drugId, that.drugId) &&
                Objects.equals(drugName, that.drugName) &&
                Objects.equals(purNumbers, that.purNumbers) &&
                Objects.equals(purPrice, that.purPrice) &&
                Objects.equals(purCount, that.purCount) &&
                Objects.equals(purId, that.purId) &&
                Objects.equals(factoryName, that.factoryName) &&
                Objects.equals(drugType, that.drugType) &&
                Objects.equals(drugRxType, that.drugRxType);
    }

    @Override
    public int hashCode() {
        return Objects.hash(drugId, drugName, purNumbers, purPrice, purCount, purId, factoryName, drugType, drugRxType);
    }

    @Override
    public String toString() {
        return "PurDrugFac{" +
                "drugId=" + drugId +
                ", drugName='" + drugName + '\'' +
                ", purNumbers=" + purNumbers +
                ", purPrice=" + purPrice +
                ", purCount=" + purCount +
                ", purId=" + purId +
                ", factoryName='" + factoryName + '\'' +
                ", drugType='" + drugType + '\'' +
                ", drugRxType='" + drugRxType + '\'' +
                '}';
    }
}
